package app.util;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;

import app.handler.HelloHandler;

public class OneConnector {

	public static void main(String[] args) throws Exception {
		//The server
		Server server = new Server();
		
		ServerConnector http = new ServerConnector(server);
		http.setHost("localhost");
		http.setPort(8080);
		http.setIdleTimeout(30000);
		
		server.addConnector(http);
		
		server.setHandler(new HelloHandler());
		
		server.start();
		server.join();
		
	}
}
